package com.ruoyi.user.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author wangqingbin
 * 不要等待机会，而要创造机会
 * @date 2024/10/18 11:01
 **/
@Data
public class PassengerIdCard {

    private Integer id;
    private String name;
    private String sex;
    private String birthday;
    private Integer age;
    private String address;
    private String idNumber;
    @NotBlank(message = "请上传身份证正面照片")
    private String idCardFront;
    @NotBlank(message = "请上传身份证反面照片")
    private String idCardAfter;
    @NotBlank(message = "未检测到用户登录，请先登录")
    private String openid;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
}
